
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>用户 · 野火IM开发手册</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="野火IM">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-prism/prism-base16-ateliersulphurpool.light.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-sectionx/sectionx.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-terminal/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-navigator/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    

        
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="user_relation.html" />
    
    
    <link rel="prev" href="./" />
    

    
        <link rel="shortcut icon" href='../../favicon.ico' type="image/x-icon">
    
    
        <link rel="bookmark" href='../../favicon.ico' type="image/x-icon">
    
    
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"wildfirechat/server","types":["star"],"size":"small"};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.wildfirechat.cn" target="_blank" class="custom-link">Home</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                        <b>1.1.</b>
                    
                    产品介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../quick_start/">
            
                <a href="../../quick_start/">
            
                    
                        <b>1.2.</b>
                    
                    快速开始
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../quick_start/server.html">
            
                <a href="../../quick_start/server.html">
            
                    
                        <b>1.2.1.</b>
                    
                    服务器部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../quick_start/android.html">
            
                <a href="../../quick_start/android.html">
            
                    
                        <b>1.2.2.</b>
                    
                    安卓编译
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../../quick_start/iOS.html">
            
                <a href="../../quick_start/iOS.html">
            
                    
                        <b>1.2.3.</b>
                    
                    iOS编译
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../../quick_start/pc.html">
            
                <a href="../../quick_start/pc.html">
            
                    
                        <b>1.2.4.</b>
                    
                    PC体验
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../architecture/">
            
                <a href="../../architecture/">
            
                    
                        <b>1.3.</b>
                    
                    系统架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../base_knowledge/">
            
                <a href="../../base_knowledge/">
            
                    
                        <b>1.4.</b>
                    
                    基础知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../base_knowledge/sdk_demo.html">
            
                <a href="../../base_knowledge/sdk_demo.html">
            
                    
                        <b>1.4.1.</b>
                    
                    SDK与Demo的关系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../base_knowledge/user.html">
            
                <a href="../../base_knowledge/user.html">
            
                    
                        <b>1.4.2.</b>
                    
                    用户
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../../base_knowledge/sdk_abilities.html">
            
                <a href="../../base_knowledge/sdk_abilities.html">
            
                    
                        <b>1.4.3.</b>
                    
                    SDK的功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../../base_knowledge/connect.html">
            
                <a href="../../base_knowledge/connect.html">
            
                    
                        <b>1.4.4.</b>
                    
                    连接
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../../base_knowledge/conversation.html">
            
                <a href="../../base_knowledge/conversation.html">
            
                    
                        <b>1.4.5.</b>
                    
                    会话
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../../base_knowledge/message.html">
            
                <a href="../../base_knowledge/message.html">
            
                    
                        <b>1.4.6.</b>
                    
                    消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="../../base_knowledge/message_content.html">
            
                <a href="../../base_knowledge/message_content.html">
            
                    
                        <b>1.4.7.</b>
                    
                    消息内容
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="../../base_knowledge/message_payload.html">
            
                <a href="../../base_knowledge/message_payload.html">
            
                    
                        <b>1.4.8.</b>
                    
                    消息负载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="../../base_knowledge/storage_and_sync.html">
            
                <a href="../../base_knowledge/storage_and_sync.html">
            
                    
                        <b>1.4.9.</b>
                    
                    存储与同步
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="../../base_knowledge/offline_message.html">
            
                <a href="../../base_knowledge/offline_message.html">
            
                    
                        <b>1.4.10.</b>
                    
                    离线消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11" data-path="../../base_knowledge/group.html">
            
                <a href="../../base_knowledge/group.html">
            
                    
                        <b>1.4.11.</b>
                    
                    群组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.12" data-path="../../base_knowledge/chatroom.html">
            
                <a href="../../base_knowledge/chatroom.html">
            
                    
                        <b>1.4.12.</b>
                    
                    聊天室
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.13" data-path="../../base_knowledge/custom_message_content.html">
            
                <a href="../../base_knowledge/custom_message_content.html">
            
                    
                        <b>1.4.13.</b>
                    
                    自定义消息内容
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../">
            
                <a href="../">
            
                    
                        <b>1.5.</b>
                    
                    服务器说明
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../server_port.html">
            
                <a href="../server_port.html">
            
                    
                        <b>1.5.1.</b>
                    
                    服务器端口说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../db_config.html">
            
                <a href="../db_config.html">
            
                    
                        <b>1.5.2.</b>
                    
                    数据库配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../server_memory.html">
            
                <a href="../server_memory.html">
            
                    
                        <b>1.5.3.</b>
                    
                    机器内存的选择
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../benchmark.html">
            
                <a href="../benchmark.html">
            
                    
                        <b>1.5.4.</b>
                    
                    性能测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../server_config.html">
            
                <a href="../server_config.html">
            
                    
                        <b>1.5.5.</b>
                    
                    服务器配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="./">
            
                <a href="./">
            
                    
                        <b>1.5.6.</b>
                    
                    Server API接口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.5.6.1" data-path="user_api.html">
            
                <a href="user_api.html">
            
                    
                        <b>1.5.6.1.</b>
                    
                    用户
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6.2" data-path="user_relation.html">
            
                <a href="user_relation.html">
            
                    
                        <b>1.5.6.2.</b>
                    
                    用户关系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6.3" data-path="robot_api.html">
            
                <a href="robot_api.html">
            
                    
                        <b>1.5.6.3.</b>
                    
                    机器人
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6.4" data-path="message_api.html">
            
                <a href="message_api.html">
            
                    
                        <b>1.5.6.4.</b>
                    
                    消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6.5" data-path="group_api.html">
            
                <a href="group_api.html">
            
                    
                        <b>1.5.6.5.</b>
                    
                    群组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6.6" data-path="chatroom_api.html">
            
                <a href="chatroom_api.html">
            
                    
                        <b>1.5.6.6.</b>
                    
                    聊天室
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6.7" data-path="sensitive_word_api.html">
            
                <a href="sensitive_word_api.html">
            
                    
                        <b>1.5.6.7.</b>
                    
                    敏感词
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6.8" data-path="error_code.html">
            
                <a href="error_code.html">
            
                    
                        <b>1.5.6.8.</b>
                    
                    code状态码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="../sdk.html">
            
                <a href="../sdk.html">
            
                    
                        <b>1.5.7.</b>
                    
                    Server SDK
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="../robot_api/">
            
                <a href="../robot_api/">
            
                    
                        <b>1.5.8.</b>
                    
                    Robot API接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="../event_callback.html">
            
                <a href="../event_callback.html">
            
                    
                        <b>1.5.9.</b>
                    
                    事件回调
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="../push_config.html">
            
                <a href="../push_config.html">
            
                    
                        <b>1.5.10.</b>
                    
                    推送说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="../media_server.html">
            
                <a href="../media_server.html">
            
                    
                        <b>1.5.11.</b>
                    
                    媒体服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="../server_clean.html">
            
                <a href="../server_clean.html">
            
                    
                        <b>1.5.12.</b>
                    
                    服务的维护
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.13" data-path="../mysql_tune.html">
            
                <a href="../mysql_tune.html">
            
                    
                        <b>1.5.13.</b>
                    
                    MySQL调优
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.14" data-path="../hardware_requirement.html">
            
                <a href="../hardware_requirement.html">
            
                    
                        <b>1.5.14.</b>
                    
                    硬件要求
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.15" data-path="../upgrade.html">
            
                <a href="../upgrade.html">
            
                    
                        <b>1.5.15.</b>
                    
                    升级指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.16" data-path="../client_database_secret.html">
            
                <a href="../client_database_secret.html">
            
                    
                        <b>1.5.16.</b>
                    
                    客户端数据库密钥
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../android/">
            
                <a href="../../android/">
            
                    
                        <b>1.6.</b>
                    
                    Android开发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../android/compile.html">
            
                <a href="../../android/compile.html">
            
                    
                        <b>1.6.1.</b>
                    
                    代码编译与工程说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../android/chatclient.html">
            
                <a href="../../android/chatclient.html">
            
                    
                        <b>1.6.2.</b>
                    
                    ChatClient简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../../android/chatuikit.html">
            
                <a href="../../android/chatuikit.html">
            
                    
                        <b>1.6.3.</b>
                    
                    ChatUIKit简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../../android/wildfirechat.html">
            
                <a href="../../android/wildfirechat.html">
            
                    
                        <b>1.6.4.</b>
                    
                    WildfireChat简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../../android/push.html">
            
                <a href="../../android/push.html">
            
                    
                        <b>1.6.5.</b>
                    
                    推送集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../ios/">
            
                <a href="../../ios/">
            
                    
                        <b>1.7.</b>
                    
                    iOS开发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../../ios/compile.html">
            
                <a href="../../ios/compile.html">
            
                    
                        <b>1.7.1.</b>
                    
                    代码编译与工程说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../../ios/chatclient.html">
            
                <a href="../../ios/chatclient.html">
            
                    
                        <b>1.7.2.</b>
                    
                    ChatClient简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../../ios/chatuikit.html">
            
                <a href="../../ios/chatuikit.html">
            
                    
                        <b>1.7.3.</b>
                    
                    ChatUIKit简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../../ios/wildfirechat.html">
            
                <a href="../../ios/wildfirechat.html">
            
                    
                        <b>1.7.4.</b>
                    
                    WildfireChat简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../../ios/push.html">
            
                <a href="../../ios/push.html">
            
                    
                        <b>1.7.5.</b>
                    
                    推送集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../../webrtc/">
            
                <a href="../../webrtc/">
            
                    
                        <b>1.8.</b>
                    
                    音视频
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../../base_knowledge/maintain.html">
            
                <a href="../../base_knowledge/maintain.html">
            
                    
                        <b>1.9.</b>
                    
                    维护说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" >
            
                <a target="_blank" href="https://github.com/wildfirechat/im-app_server/blob/master/README.md">
            
                    
                        <b>1.10.</b>
                    
                    应用服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" >
            
                <a target="_blank" href="https://github.com/wildfirechat/push_server/blob/master/README.md">
            
                    
                        <b>1.11.</b>
                    
                    推送服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" >
            
                <a target="_blank" href="https://github.com/wildfirechat/robot_server/blob/master/README.md">
            
                    
                        <b>1.12.</b>
                    
                    机器人服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../../faq/">
            
                <a href="../../faq/">
            
                    
                        <b>1.13.</b>
                    
                    常见问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../../faq/general.html">
            
                <a href="../../faq/general.html">
            
                    
                        <b>1.13.1.</b>
                    
                    通用问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1.1" data-path="../../faq/buy.html">
            
                <a href="../../faq/buy.html">
            
                    
                        <b>1.13.1.1.</b>
                    
                    购买流程
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../../faq/server.html">
            
                <a href="../../faq/server.html">
            
                    
                        <b>1.13.2.</b>
                    
                    服务器问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.2.1" data-path="../../faq/server/q1.html">
            
                <a href="../../faq/server/q1.html">
            
                    
                        <b>1.13.2.1.</b>
                    
                    如何导入到IDE中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2.2" data-path="../../faq/server/q2.html">
            
                <a href="../../faq/server/q2.html">
            
                    
                        <b>1.13.2.2.</b>
                    
                    如何解决等登陆但一直连接中的问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="../../faq/android.html">
            
                <a href="../../faq/android.html">
            
                    
                        <b>1.13.3.</b>
                    
                    安卓问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.3.1" data-path="../../faq/android/q1.html">
            
                <a href="../../faq/android/q1.html">
            
                    
                        <b>1.13.3.1.</b>
                    
                    如何导入到Android Studio中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3.2" data-path="../../faq/android/q2.html">
            
                <a href="../../faq/android/q2.html">
            
                    
                        <b>1.13.3.2.</b>
                    
                    如何集成到现有项目中
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13.4" data-path="../../faq/ios.html">
            
                <a href="../../faq/ios.html">
            
                    
                        <b>1.13.4.</b>
                    
                    iOS问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.5" data-path="../../faq/web.html">
            
                <a href="../../faq/web.html">
            
                    
                        <b>1.13.5.</b>
                    
                    Web问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.6" data-path="../../faq/practicality.html">
            
                <a href="../../faq/practicality.html">
            
                    
                        <b>1.13.6.</b>
                    
                    最佳实践
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.6.1" data-path="../../faq/practicality/stickers.html">
            
                <a href="../../faq/practicality/stickers.html">
            
                    
                        <b>1.13.6.1.</b>
                    
                    小表情大世界
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.6.2" data-path="../../faq/practicality/online_match.html">
            
                <a href="../../faq/practicality/online_match.html">
            
                    
                        <b>1.13.6.2.</b>
                    
                    在线匹配
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../../blogs/">
            
                <a href="../../blogs/">
            
                    
                        <b>1.14.</b>
                    
                    文章
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../../blogs/如何开发一款微信.html">
            
                <a href="../../blogs/如何开发一款微信.html">
            
                    
                        <b>1.14.1.</b>
                    
                    如何开发一款微信
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="../../blogs/如何修改野火应用服务生成用户名的策略.html">
            
                <a href="../../blogs/如何修改野火应用服务生成用户名的策略.html">
            
                    
                        <b>1.14.2.</b>
                    
                    如何修改野火应用服务生成用户名的策略
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="../../blogs/苹果ATS处理.html">
            
                <a href="../../blogs/苹果ATS处理.html">
            
                    
                        <b>1.14.3.</b>
                    
                    苹果ATS处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.4" data-path="../../blogs/野火IM的商业逻辑.html">
            
                <a href="../../blogs/野火IM的商业逻辑.html">
            
                    
                        <b>1.14.4.</b>
                    
                    野火IM的商业逻辑
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.5" data-path="../../blogs/如何理解野火IM设计理念.html">
            
                <a href="../../blogs/如何理解野火IM设计理念.html">
            
                    
                        <b>1.14.5.</b>
                    
                    如何理解野火IM设计理念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.6" data-path="../../blogs/为什么野火IM不全免费.html">
            
                <a href="../../blogs/为什么野火IM不全免费.html">
            
                    
                        <b>1.14.6.</b>
                    
                    为什么野火IM不全免费
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.7" data-path="../../blogs/开发运营社交软件也要遵守法律.html">
            
                <a href="../../blogs/开发运营社交软件也要遵守法律.html">
            
                    
                        <b>1.14.7.</b>
                    
                    开发运营社交软件也要遵守法律
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.8" data-path="../../blogs/如何实现聊天记录的备份与恢复.html">
            
                <a href="../../blogs/如何实现聊天记录的备份与恢复.html">
            
                    
                        <b>1.14.8.</b>
                    
                    如何实现聊天记录的备份与恢复
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >用户</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-anchor"></i><ul><li><a href="#&#x7528;&#x6237;">&#x7528;&#x6237;</a></li><ul><li><a href="#&#x83B7;&#x53D6;&#x7528;&#x6237;token">&#x83B7;&#x53D6;&#x7528;&#x6237;token</a></li><li><a href="#&#x6CE8;&#x518C;&#x66F4;&#x65B0;&#x7528;&#x6237;">&#x6CE8;&#x518C;/&#x66F4;&#x65B0;&#x7528;&#x6237;</a></li><li><a href="#&#x83B7;&#x53D6;&#x7528;&#x6237;&#x4FE1;&#x606F;">&#x83B7;&#x53D6;&#x7528;&#x6237;&#x4FE1;&#x606F;</a></li><li><a href="#&#x66F4;&#x65B0;&#x7528;&#x6237;&#x72B6;&#x6001;">&#x66F4;&#x65B0;&#x7528;&#x6237;&#x72B6;&#x6001;</a></li><li><a href="#&#x67E5;&#x8BE2;&#x7528;&#x6237;&#x72B6;&#x6001;">&#x67E5;&#x8BE2;&#x7528;&#x6237;&#x72B6;&#x6001;</a></li><li><a href="#&#x83B7;&#x53D6;&#x5C01;&#x7981;&#x7981;&#x8A00;&#x7528;&#x6237;&#x5217;&#x8868;">&#x83B7;&#x53D6;&#x5C01;&#x7981;/&#x7981;&#x8A00;&#x7528;&#x6237;&#x5217;&#x8868;</a></li><li><a href="#&#x83B7;&#x53D6;&#x7528;&#x6237;&#x5728;&#x7EBF;&#x72B6;&#x6001;">&#x83B7;&#x53D6;&#x7528;&#x6237;&#x5728;&#x7EBF;&#x72B6;&#x6001;</a></li></ul></ul></div><a href="#&#x7528;&#x6237;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x7528;&#x6237;"><a name="&#x7528;&#x6237;" class="anchor-navigation-ex-anchor" href="#&#x7528;&#x6237;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7528;&#x6237;</h1>
<h2 id="&#x83B7;&#x53D6;&#x7528;&#x6237;token">1. &#x83B7;&#x53D6;&#x7528;&#x6237;token</h2>
<h4 id="&#x5730;&#x5740;">1.0.1. &#x5730;&#x5740;</h4>
<pre class="language-"><code>http://domain/admin/user/get_token
</code></pre><h4 id="body">1.0.2. body</h4>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x5FC5;&#x9700;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>userId</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x7528;&#x6237;ID</td>
</tr>
<tr>
<td>clientId</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x5BA2;&#x6237;&#x7AEF;ID</td>
</tr>
</tbody>
</table>
<blockquote>
<p>clientId&#x4E3A;&#x5BA2;&#x6237;&#x7AEF;ID&#xFF0C;&#x5BA2;&#x6237;&#x7AEF;SDK&#x6709;&#x83B7;&#x53D6;clientId&#x7684;&#x63A5;&#x53E3;</p>
</blockquote>
<h4 id="&#x54CD;&#x5E94;">1.0.3. &#x54CD;&#x5E94;</h4>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x5FC5;&#x9700;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>userId</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x7528;&#x6237;ID</td>
</tr>
<tr>
<td>imToken</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x7528;&#x6237;token</td>
</tr>
</tbody>
</table>
<h4 id="&#x793A;&#x4F8B;">1.0.4. &#x793A;&#x4F8B;</h4>
<pre class="language-"><code>curl -X POST -H &quot;nonce:14723&quot; -H &quot;timestamp&quot;:&quot;1539698981861&quot; -H &quot;sign&quot;:&quot;9e9f98672f466a81e6dd61570689528cf38e6418&quot; -H &quot;Content-Type:application/json&quot; -d &quot;{\&quot;userId\&quot;:\&quot;a\&quot;,\&quot;clientId\&quot;:\&quot;xxxxx\&quot;}&quot; http://localhost/admin/user/get_token

{
  &quot;code&quot;:0,
  &quot;msg&quot;:&quot;success&quot;,
  &quot;result&quot;:{
    &quot;userId&quot;:&quot;a&quot;,
    &quot;imToken&quot;:&quot;hN0AF2XX6+pOWqMS7iQiZnCFfGA53r1r&quot;
  }
}
</code></pre><h2 id="&#x6CE8;&#x518C;_&#x66F4;&#x65B0;&#x7528;&#x6237;">2. &#x6CE8;&#x518C;/&#x66F4;&#x65B0;&#x7528;&#x6237;</h2>
<h4 id="&#x5730;&#x5740;">2.0.1. &#x5730;&#x5740;</h4>
<pre class="language-"><code>http://domain/admin/user/create
</code></pre><h4 id="body">2.0.2. body</h4>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x5FC5;&#x9700;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>userId</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x7528;&#x6237;ID&#xFF0C;&#x5982;&#x679C;&#x4F20;&#x7A7A;&#xFF0C;&#x7CFB;&#x7EDF;&#x4F1A;&#x81EA;&#x52A8;&#x751F;&#x6210;&#x4E00;&#x4E2A;&#x7528;&#x6237;id</td>
</tr>
<tr>
<td>name</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x767B;&#x9646;&#x540D;</td>
</tr>
<tr>
<td>password</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x7528;&#x6237;&#x5BC6;&#x7801;&#xFF0C;&#x53EF;&#x4EE5;&#x4E3A;&#x7A7A;&#xFF0C;&#x5982;&#x679C;&#x4E3A;&#x7A7A;&#xFF0C;&#x7528;&#x6237;&#x4E0D;&#x53EF;&#x4EE5;&#x5728;&#x91CE;&#x706B;IM&#x670D;&#x52A1;&#x5668;&#x767B;&#x9646;</td>
</tr>
<tr>
<td>displayName</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x663E;&#x793A;&#x540D;&#x5B57;</td>
</tr>
<tr>
<td>portrait</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x7528;&#x6237;&#x5934;&#x50CF;</td>
</tr>
<tr>
<td>mobile</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x7528;&#x6237;&#x624B;&#x673A;&#x53F7;&#x7801;</td>
</tr>
<tr>
<td>email</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x7528;&#x6237;&#x90AE;&#x7BB1;</td>
</tr>
<tr>
<td>address</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x7528;&#x6237;&#x5730;&#x5740;</td>
</tr>
<tr>
<td>company</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x7528;&#x6237;&#x516C;&#x53F8;</td>
</tr>
<tr>
<td>extra</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x9644;&#x52A0;&#x4FE1;&#x606F;</td>
</tr>
</tbody>
</table>
<h4 id="&#x54CD;&#x5E94;">2.0.3. &#x54CD;&#x5E94;</h4>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x5FC5;&#x9700;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>userId</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x7528;&#x6237;ID</td>
</tr>
</tbody>
</table>
<h4 id="&#x793A;&#x4F8B;">2.0.4. &#x793A;&#x4F8B;</h4>
<pre class="language-"><code>curl -X POST -H &quot;nonce:14723&quot; -H &quot;timestamp&quot;:&quot;1539698981861&quot; -H &quot;sign&quot;:&quot;9e9f98672f466a81e6dd61570689528cf38e6418&quot; -H &quot;Content-Type:application/json&quot; -d &quot;{\&quot;name\&quot;:\&quot;a\&quot;,\&quot;displayName\&quot;:\&quot;A\&quot;,\&quot;password\&quot;:\&quot;123456\&quot;}&quot; http://localhost/admin/user/create

{
  &quot;code&quot;:0,
  &quot;msg&quot;:&quot;success&quot;,
  &quot;result&quot;:{
    &quot;userId&quot;:&quot;a&quot;,
  }
}
</code></pre><h2 id="&#x83B7;&#x53D6;&#x7528;&#x6237;&#x4FE1;&#x606F;">3. &#x83B7;&#x53D6;&#x7528;&#x6237;&#x4FE1;&#x606F;</h2>
<h4 id="&#x5730;&#x5740;">3.0.1. &#x5730;&#x5740;</h4>
<pre class="language-"><code>http://domain/admin/user/get_info
</code></pre><h4 id="body">3.0.2. body</h4>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x5FC5;&#x9700;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>userId</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x7528;&#x6237;ID</td>
</tr>
</tbody>
</table>
<h4 id="&#x54CD;&#x5E94;">3.0.3. &#x54CD;&#x5E94;</h4>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x5FC5;&#x9700;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>userId</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x7528;&#x6237;ID</td>
</tr>
<tr>
<td>name</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x767B;&#x9646;&#x540D;</td>
</tr>
<tr>
<td>displayName</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x663E;&#x793A;&#x540D;&#x5B57;</td>
</tr>
<tr>
<td>portrait</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x7528;&#x6237;&#x5934;&#x50CF;</td>
</tr>
<tr>
<td>mobile</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x7528;&#x6237;&#x624B;&#x673A;&#x53F7;&#x7801;</td>
</tr>
<tr>
<td>email</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x7528;&#x6237;&#x90AE;&#x7BB1;</td>
</tr>
<tr>
<td>address</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x7528;&#x6237;&#x5730;&#x5740;</td>
</tr>
<tr>
<td>company</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x7528;&#x6237;&#x516C;&#x53F8;</td>
</tr>
<tr>
<td>extra</td>
<td>string</td>
<td>&#x5426;</td>
<td>&#x9644;&#x52A0;&#x4FE1;&#x606F;</td>
</tr>
</tbody>
</table>
<h4 id="&#x793A;&#x4F8B;">3.0.4. &#x793A;&#x4F8B;</h4>
<pre class="language-"><code>curl -X POST -H &quot;nonce:14723&quot; -H &quot;timestamp&quot;:&quot;1539698981861&quot; -H &quot;sign&quot;:&quot;9e9f98672f466a81e6dd61570689528cf38e6418&quot; -H &quot;Content-Type:application/json&quot; -d &quot;{\&quot;userId\&quot;:\&quot;a\&quot;}&quot; http://localhost/admin/user/get_info

{
  &quot;code&quot;:0,
  &quot;msg&quot;:&quot;success&quot;,
  &quot;result&quot;:{
    &quot;userId&quot;:&quot;a&quot;,
    &quot;name&quot;:&quot;usera&quot;
  }
}
</code></pre><h2 id="&#x66F4;&#x65B0;&#x7528;&#x6237;&#x72B6;&#x6001;">4. &#x66F4;&#x65B0;&#x7528;&#x6237;&#x72B6;&#x6001;</h2>
<p>&#x5C01;&#x7981;/&#x7981;&#x8A00;&#x7528;&#x6237;</p>
<h4 id="&#x5730;&#x5740;">4.0.1. &#x5730;&#x5740;</h4>
<pre class="language-"><code>http://domain/admin/user/update_block_status
</code></pre><h4 id="body">4.0.2. body</h4>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x5FC5;&#x9700;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>userId</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x7528;&#x6237;ID</td>
</tr>
<tr>
<td>status</td>
<td>int</td>
<td>&#x662F;</td>
<td>&#x7528;&#x6237;&#x72B6;&#x6001;&#xFF0C;0 &#x6B63;&#x5E38;&#xFF1B;1 &#x88AB;&#x7981;&#x8A00;&#xFF0C;2 &#x88AB;&#x5C01;&#x7981;</td>
</tr>
</tbody>
</table>
<h4 id="&#x54CD;&#x5E94;">4.0.3. &#x54CD;&#x5E94;</h4>
<p>N/A</p>
<h4 id="&#x793A;&#x4F8B;">4.0.4. &#x793A;&#x4F8B;</h4>
<pre class="language-"><code>curl -X POST -H &quot;nonce:14723&quot; -H &quot;timestamp&quot;:&quot;1539698981861&quot; -H &quot;sign&quot;:&quot;9e9f98672f466a81e6dd61570689528cf38e6418&quot; -H &quot;Content-Type:application/json&quot; -d &quot;{\&quot;userId\&quot;:\&quot;a\&quot;, \&quot;status\&quot;:1}&quot; http://localhost/admin/user/update_block_status

{
  &quot;code&quot;:0,
  &quot;msg&quot;:&quot;success&quot;
}
</code></pre><h2 id="&#x67E5;&#x8BE2;&#x7528;&#x6237;&#x72B6;&#x6001;">5. &#x67E5;&#x8BE2;&#x7528;&#x6237;&#x72B6;&#x6001;</h2>
<h4 id="&#x5730;&#x5740;">5.0.1. &#x5730;&#x5740;</h4>
<pre class="language-"><code>http://domain/admin/user/check_block_status
</code></pre><h4 id="body">5.0.2. body</h4>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x5FC5;&#x9700;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>userId</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x7528;&#x6237;ID</td>
</tr>
</tbody>
</table>
<h4 id="&#x54CD;&#x5E94;">5.0.3. &#x54CD;&#x5E94;</h4>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x5FC5;&#x9700;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>status</td>
<td>int</td>
<td>&#x662F;</td>
<td>&#x7528;&#x6237;&#x72B6;&#x6001;&#xFF0C;0 &#x6B63;&#x5E38;&#xFF1B;1 &#x88AB;&#x7981;&#x8A00;&#xFF0C;2 &#x88AB;&#x5C01;&#x7981;</td>
</tr>
</tbody>
</table>
<h4 id="&#x793A;&#x4F8B;">5.0.4. &#x793A;&#x4F8B;</h4>
<pre class="language-"><code>curl -X POST -H &quot;nonce:14723&quot; -H &quot;timestamp&quot;:&quot;1539698981861&quot; -H &quot;sign&quot;:&quot;9e9f98672f466a81e6dd61570689528cf38e6418&quot; -H &quot;Content-Type:application/json&quot; -d &quot;{\&quot;userId\&quot;:\&quot;a\&quot;}&quot; http://localhost/admin/user/check_block_status

{
  &quot;code&quot;:0,
  &quot;msg&quot;:&quot;success&quot;,
  &quot;result&quot;:{
    &quot;status&quot;:0
  }
}
</code></pre><h2 id="&#x83B7;&#x53D6;&#x5C01;&#x7981;_&#x7981;&#x8A00;&#x7528;&#x6237;&#x5217;&#x8868;">6. &#x83B7;&#x53D6;&#x5C01;&#x7981;/&#x7981;&#x8A00;&#x7528;&#x6237;&#x5217;&#x8868;</h2>
<h4 id="&#x5730;&#x5740;">6.0.1. &#x5730;&#x5740;</h4>
<pre class="language-"><code>http://domain/admin/user/get_blocked_list
</code></pre><h4 id="body">6.0.2. body</h4>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x5FC5;&#x9700;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>userId</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x7528;&#x6237;ID</td>
</tr>
</tbody>
</table>
<h4 id="&#x54CD;&#x5E94;">6.0.3. &#x54CD;&#x5E94;</h4>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x5FC5;&#x9700;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>userId</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x7528;&#x6237;ID</td>
</tr>
<tr>
<td>imToken</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x7528;&#x6237;token</td>
</tr>
</tbody>
</table>
<h4 id="&#x793A;&#x4F8B;">6.0.4. &#x793A;&#x4F8B;</h4>
<pre class="language-"><code>curl -X POST -H &quot;nonce:14723&quot; -H &quot;timestamp&quot;:&quot;1539698981861&quot; -H &quot;sign&quot;:&quot;9e9f98672f466a81e6dd61570689528cf38e6418&quot; -H &quot;Content-Type:application/json&quot; -d &quot;{\&quot;userId\&quot;:\&quot;a\&quot;}&quot; http://localhost/admin/user/get_blocked_list

{
  &quot;code&quot;:0,
  &quot;msg&quot;:&quot;success&quot;,
  &quot;result&quot;:[
    {
      &quot;userId&quot;:&quot;a&quot;,
      &quot;status&quot;:1,
    },
    {
      &quot;userId&quot;:&quot;b&quot;,
      &quot;status&quot;:2,
    },
    {
      &quot;userId&quot;:&quot;c&quot;,
      &quot;status&quot;:3,
    },
  ]
}
</code></pre><h2 id="&#x83B7;&#x53D6;&#x7528;&#x6237;&#x5728;&#x7EBF;&#x72B6;&#x6001;">7. &#x83B7;&#x53D6;&#x7528;&#x6237;&#x5728;&#x7EBF;&#x72B6;&#x6001;</h2>
<h4 id="&#x5730;&#x5740;">7.0.1. &#x5730;&#x5740;</h4>
<pre class="language-"><code>http://domain/admin/user/onlinestatus
</code></pre><h4 id="body">7.0.2. body</h4>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x5FC5;&#x9700;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>userId</td>
<td>string</td>
<td>&#x662F;</td>
<td>&#x7528;&#x6237;ID</td>
</tr>
</tbody>
</table>
<h4 id="&#x54CD;&#x5E94;">7.0.3. &#x54CD;&#x5E94;</h4>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x5FC5;&#x9700;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>status</td>
<td>int</td>
<td>&#x662F;</td>
<td>0 online, 1 have session offline, 2 no session</td>
</tr>
</tbody>
</table>
<h4 id="&#x793A;&#x4F8B;">7.0.4. &#x793A;&#x4F8B;</h4>
<pre class="language-"><code>curl -X POST -H &quot;nonce:14723&quot; -H &quot;timestamp&quot;:&quot;1539698981861&quot; -H &quot;sign&quot;:&quot;9e9f98672f466a81e6dd61570689528cf38e6418&quot; -H &quot;Content-Type:application/json&quot; -d &quot;{\&quot;userId\&quot;:\&quot;a\&quot;}&quot; http://localhost/admin/user/onlinestatus

{
  &quot;code&quot;:0,
  &quot;msg&quot;:&quot;success&quot;,
  &quot;result&quot;:{
    &quot;status&quot;:0
  }
}
</code></pre><footer class="page-footer"><span class="copyright">2018 &#xA9; wildfirechat.cn &#x4EAC;ICP&#x5907;18060403&#x53F7;-1 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2019-06-03 21:06:59
</span></footer><div id="anchors-navbar"><i class="fa fa-anchor"></i><ul><p><a href="#&#x7528;&#x6237;">&#x7528;&#x6237;</a></p><li><a href="#&#x83B7;&#x53D6;&#x7528;&#x6237;token">1. &#x83B7;&#x53D6;&#x7528;&#x6237;token</a></li><ul><li><a href="#">none</a></li><ul><li><a href="#&#x5730;&#x5740;">1.0.1. &#x5730;&#x5740;</a></li><li><a href="#body">1.0.2. body</a></li><li><a href="#&#x54CD;&#x5E94;">1.0.3. &#x54CD;&#x5E94;</a></li><li><a href="#&#x793A;&#x4F8B;">1.0.4. &#x793A;&#x4F8B;</a></li></ul></ul><li><a href="#&#x6CE8;&#x518C;_&#x66F4;&#x65B0;&#x7528;&#x6237;">2. &#x6CE8;&#x518C;/&#x66F4;&#x65B0;&#x7528;&#x6237;</a></li><ul><li><a href="#">none</a></li><ul><li><a href="#&#x5730;&#x5740;">2.0.1. &#x5730;&#x5740;</a></li><li><a href="#body">2.0.2. body</a></li><li><a href="#&#x54CD;&#x5E94;">2.0.3. &#x54CD;&#x5E94;</a></li><li><a href="#&#x793A;&#x4F8B;">2.0.4. &#x793A;&#x4F8B;</a></li></ul></ul><li><a href="#&#x83B7;&#x53D6;&#x7528;&#x6237;&#x4FE1;&#x606F;">3. &#x83B7;&#x53D6;&#x7528;&#x6237;&#x4FE1;&#x606F;</a></li><ul><li><a href="#">none</a></li><ul><li><a href="#&#x5730;&#x5740;">3.0.1. &#x5730;&#x5740;</a></li><li><a href="#body">3.0.2. body</a></li><li><a href="#&#x54CD;&#x5E94;">3.0.3. &#x54CD;&#x5E94;</a></li><li><a href="#&#x793A;&#x4F8B;">3.0.4. &#x793A;&#x4F8B;</a></li></ul></ul><li><a href="#&#x66F4;&#x65B0;&#x7528;&#x6237;&#x72B6;&#x6001;">4. &#x66F4;&#x65B0;&#x7528;&#x6237;&#x72B6;&#x6001;</a></li><ul><li><a href="#">none</a></li><ul><li><a href="#&#x5730;&#x5740;">4.0.1. &#x5730;&#x5740;</a></li><li><a href="#body">4.0.2. body</a></li><li><a href="#&#x54CD;&#x5E94;">4.0.3. &#x54CD;&#x5E94;</a></li><li><a href="#&#x793A;&#x4F8B;">4.0.4. &#x793A;&#x4F8B;</a></li></ul></ul><li><a href="#&#x67E5;&#x8BE2;&#x7528;&#x6237;&#x72B6;&#x6001;">5. &#x67E5;&#x8BE2;&#x7528;&#x6237;&#x72B6;&#x6001;</a></li><ul><li><a href="#">none</a></li><ul><li><a href="#&#x5730;&#x5740;">5.0.1. &#x5730;&#x5740;</a></li><li><a href="#body">5.0.2. body</a></li><li><a href="#&#x54CD;&#x5E94;">5.0.3. &#x54CD;&#x5E94;</a></li><li><a href="#&#x793A;&#x4F8B;">5.0.4. &#x793A;&#x4F8B;</a></li></ul></ul><li><a href="#&#x83B7;&#x53D6;&#x5C01;&#x7981;_&#x7981;&#x8A00;&#x7528;&#x6237;&#x5217;&#x8868;">6. &#x83B7;&#x53D6;&#x5C01;&#x7981;/&#x7981;&#x8A00;&#x7528;&#x6237;&#x5217;&#x8868;</a></li><ul><li><a href="#">none</a></li><ul><li><a href="#&#x5730;&#x5740;">6.0.1. &#x5730;&#x5740;</a></li><li><a href="#body">6.0.2. body</a></li><li><a href="#&#x54CD;&#x5E94;">6.0.3. &#x54CD;&#x5E94;</a></li><li><a href="#&#x793A;&#x4F8B;">6.0.4. &#x793A;&#x4F8B;</a></li></ul></ul><li><a href="#&#x83B7;&#x53D6;&#x7528;&#x6237;&#x5728;&#x7EBF;&#x72B6;&#x6001;">7. &#x83B7;&#x53D6;&#x7528;&#x6237;&#x5728;&#x7EBF;&#x72B6;&#x6001;</a></li><ul><li><a href="#">none</a></li><ul><li><a href="#&#x5730;&#x5740;">7.0.1. &#x5730;&#x5740;</a></li><li><a href="#body">7.0.2. body</a></li><li><a href="#&#x54CD;&#x5E94;">7.0.3. &#x54CD;&#x5E94;</a></li><li><a href="#&#x793A;&#x4F8B;">7.0.4. &#x793A;&#x4F8B;</a></li></ul></ul></ul></div><a href="#&#x83B7;&#x53D6;&#x7528;&#x6237;token" id="goTop"><i class="fa fa-arrow-up"></i></a>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: Server API接口">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="user_relation.html" class="navigation navigation-next " aria-label="Next page: 用户关系">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"用户","level":"1.5.6.1","depth":3,"next":{"title":"用户关系","level":"1.5.6.2","depth":3,"path":"server/admin_api/user_relation.md","ref":"server/admin_api/user_relation.md","articles":[]},"previous":{"title":"Server API接口","level":"1.5.6","depth":2,"path":"server/admin_api/README.md","ref":"server/admin_api/README.md","articles":[{"title":"用户","level":"1.5.6.1","depth":3,"path":"server/admin_api/user_api.md","ref":"server/admin_api/user_api.md","articles":[]},{"title":"用户关系","level":"1.5.6.2","depth":3,"path":"server/admin_api/user_relation.md","ref":"server/admin_api/user_relation.md","articles":[]},{"title":"机器人","level":"1.5.6.3","depth":3,"path":"server/admin_api/robot_api.md","ref":"server/admin_api/robot_api.md","articles":[]},{"title":"消息","level":"1.5.6.4","depth":3,"path":"server/admin_api/message_api.md","ref":"server/admin_api/message_api.md","articles":[]},{"title":"群组","level":"1.5.6.5","depth":3,"path":"server/admin_api/group_api.md","ref":"server/admin_api/group_api.md","articles":[]},{"title":"聊天室","level":"1.5.6.6","depth":3,"path":"server/admin_api/chatroom_api.md","ref":"server/admin_api/chatroom_api.md","articles":[]},{"title":"敏感词","level":"1.5.6.7","depth":3,"path":"server/admin_api/sensitive_word_api.md","ref":"server/admin_api/sensitive_word_api.md","articles":[]},{"title":"code状态码","level":"1.5.6.8","depth":3,"path":"server/admin_api/error_code.md","ref":"server/admin_api/error_code.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-highlight","-livereload","search-plus@^0.0.11","simple-page-toc@^0.1.1","github@^2.0.0","github-buttons@2.1.0","prism@^2.1.0","prism-themes@^0.0.2","anchors@^0.7.1","emphasize@^1.1.0","splitter@^0.0.8","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","sectionx@^3.1.0","sitemap-general@^0.1.1","anchor-navigation-ex@0.1.8","favicon@^0.0.2","todo@^0.1.3","3-ba@^0.9.0","terminal@^0.3.2","alerts@^0.2.0","include-csv@^0.1.0","-sharing","sharing-plus@^0.0.2","include-codeblock@^3.0.2","navigator"],"styles":{"website":"styles/website.css","ebook":"styles/ebook.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"2018 © wildfirechat.cn 京ICP备18060403号-1","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prism-themes/themes/prism-base16-ateliersulphurpool.light.css"]},"include-csv":{},"disqus":{"shortName":"gitbookuse"},"emphasize":{},"github":{"url":"https://github.com/wildfirechat/docs"},"simple-page-toc":{"maxDepth":3,"skipFirstH1":true},"todo":{},"splitter":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"sitemap-general":{"prefix":"http://wildfirechat.cn"},"fontsettings":{"theme":"white","family":"sans","size":2},"sectionx":{"tag":"b"},"anchor-navigation-ex":{"isRewritePageTitle":false,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"favicon":{"shortcut":"favicon.ico","bookmark":"favicon.ico"},"prism-themes":{},"navigator":{},"alerts":{},"github-buttons":{"repo":"wildfirechat/server","types":["star"],"size":"small"},"3-ba":{"configuration":"auto","token":"ff100361cdce95dd4c8fb96b4009f7bc"},"expandable-chapters-small":{},"include-codeblock":{"check":false,"edit":true,"fixlang":false,"lang":"","template":"ace","theme":"chrome","unindent":true},"sharing":{"qq":true,"all":["facebook","google","twitter","weibo","instapaper","linkedin","pocket","stumbleupon","qq","qzone"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":true},"terminal":{"copyButtons":true,"fade":false,"style":"flat"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"search-plus":{}},"theme":"default","author":"野火IM","pdf":{"pageNumbers":true,"fontSize":9,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":45,"left":45,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"野火IM开发手册","links":{"sidebar":{"Home":"http://www.wildfirechat.cn"}},"gitbook":"*","description":"野火IM开发手册"},"file":{"path":"server/admin_api/user_api.md","mtime":"2019-06-03T13:06:59.511Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-12-10T15:11:58.061Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sectionx/sectionx.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-3-ba/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-terminal/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-alerts/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

